import {getArticle} from '../service'

export default async function Article(){
    const oWrapper = document.createElement('div')
    const data = await getArticle()

    oWrapper.innerHTML = `
    <h1>${data.title}</h1>
    <p>${data.content}</p>
    `
    return oWrapper
}